#include "include.h"

#include "actions/actioncontroller.h"


#include "compile/debug_memoryleaks"
using namespace actions;



ActionController::ActionController(gui::GraphicView* _view)
: action(NULL), view(_view)
{
    current_step=0;
    step_count=1;
}

ActionController::~ActionController()
{
    if (! isCompleted())
    {
        cancel();
    }
}

bool ActionController::isCompleted() const
{
    return (current_step==(step_count-1));
}

void ActionController::cancel()
{
    std::cout<<"CANCEL"<<action<<"\n";
}





